package com.example.spindrift.common;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class BaseException extends RuntimeException{
    private ResponseCode code;
    public BaseException(ResponseCode code){
        this.code = code;
    }
    public BaseException(Throwable cause,ResponseCode code){
        super(cause);
        this.code = code;
    }

    public ResponseCode getCode() {
        return code;
    }
}
